import normalMap from "../img/normals.jpg";
import Boom from "../img/bloom4.png";

const bulidingEffectCode = "AgCIM-WhiteModelDesign";
const bulidingAssociatedCode = "AgCIM-WhiteModelDesign-Buildings";
let bulidingEffectList = {
  dirCode: "global-" + bulidingEffectCode,
  page: 1,
  rows: 1000,
};
let bulidingAssociatedList = {
  dirCode: "global-" + bulidingAssociatedCode,
  page: 1,
  rows: 1000,
};
const buildingTextureCode = "AgCIM-BuildingTextrueDesign";
let buildingTextureList = {
  dirCode: "global-" + buildingTextureCode,
  page: 1,
  rows: 1000,
};
let flattenRectangle = [113.283251, 23.07, 113.436, 23.15];
let flattenHeight = 6;
const waterConfig = {
  wfsUrl: "http://172.18.80.57/agserver/topp/ows",
  tableName: "topp:珠江水域裁剪20220507",
  // tableName: "topp:ZJRiver",
  type: "myWater",
  frequency: 20000.0,
  animationSpeed: 0.01,
  normalMap: normalMap,
  amplitude: 1.0,
  baseWaterColor: "rgba(37,66,180, 1.0)", //默认水体基础颜色
  nightBaseWaterColor: "rgba(0,0,51,1.0)", //夜晚水体基础颜色
  dayBaseWaterColor: "rgba(37,66,180, 1.0)", //白天水体基础颜色
  height: 9.5, //水体的高度
  flowdirection: 5.0,
  specularIntensity: 0.8, //镜面光照强度
  nightReflectIndesity: 0.47, //夜晚水体反射强度
  dayReflectIndesity: 0.8, //白天水体反射强度
  reflectIndesity: 0.9,
  layerIds: [
    "19e82520-17cb-4694-bd01-6bb8714d4e91",
    "f1b61e1e-4b21-4bb3-9f85-ac4668ae7cbd",
  ],
  //61环境
  // layerIds: [
  //   "2c2c4e27-eb32-4d36-9900-7a4d75a43715",
  //   "5e90a4fa-221e-47f9-b36f-e895aba4a161",
  // ],
  night: 19.0,
  morning: 6.0,
  isCreateCustomShader: true,
};
const lightConfig = {
  layerUrl: "http://172.18.80.57:80/agserver/topp/ows",
  tableName: "topp:GDSGZSTHQLD20220531",
  // lightUrl: "http://172.18.27.73:9405/Models/ludengshuang2.gltf",
  // lightUrl: "http://172.18.27.73:9405/Models/jgd/jgd2.gltf",
  // lightUrl: "http://172.18.27.73:9405/Models/ludengshuang.glb",
  // lightUrl: "http://172.18.27.73:9405/Models/ludeng1.glb",
  //gltf: "http://172.18.27.73:9405/Models/ludeng2.glb",
  // lightUrl: "http://172.18.27.73:9405/Models/ludeng3.glb",
  // lightUrl: "http://172.18.27.73:9405/Models/StreetLightV.glb",
  gltf: agcim.net.apiPath._agcim_viewer_rest + "/upload/3D/ludeng2.glb",
  BloomPath: Boom,
  height: 12.0,
  bloomHeight: 15,
  semiMajorAxis: 30,
  semiMinorAxis: 30,
  deltaX: 0.0006,
  deltaY: 0.0006,
  modelScale: 1.0,
  visiableDistance: 5000.0,
  morning: 6.0,
  night: 19.0,
  dayLightIndesity: 1.0,
  nightLightIndesity: 0.1,
  isCreateCustomShader: true,
};

const treeConfig = {
  layerUrl: "http://172.18.80.57:80/agserver/topp/ows",
  tableName: "topp:GDSGZSTHQHCGCTREE20220524",
  // gltf: "http://172.18.27.73:9405/Models/Shrub.glb",
  // gltf: "http://172.18.27.73:9405/Models/EvergreenTree.glb",
  //gltf: "http://172.18.27.73:9405/Models/tree20220615.glb",
  //gltf: "http://172.18.27.19/cesiumData/tree20220607.glb",
  // gltf: "http://172.18.27.19/cesiumData/Birch%20Tree.glb",
  gltf: agcim.net.apiPath._agcim_viewer_rest + "/upload/3D/tree20220615.glb",
  height: 10.0,
  deltaX: 0.0008,
  deltaY: 0.0008,
  modelScale: 3.0,
  visiableDistance: 2000.0,
  allowPicking: false,
  shadows: Cesium.ShadowMode.DISABLED,
  scale: 2,
  minimumPixelSize: 1,
  maximumScale: 20000,
  morning: 6.0,
  night: 19.0,
  dayLightIndesity: 1.0,
  nightLightIndesity: 0.1,
};

const yellowFloweConfig = {
  layerUrl: "http://172.18.80.57:80/agserver/topp/ows",
  tableName: "topp:GDSGZSTHQHCGCTREE20220524",
  gltf: "http://172.18.27.73:9405/Models/Yellowflowerpatch.glb",
  height: 9.3,
  deltaX: 0.00004,
  deltaY: 0.00004,
  modelScale: 5.0,
  visiableDistance: 2000.0,
  allowPicking: true,
  shadows: Cesium.ShadowMode.DISABLED,
  scale: 1,
  minimumPixelSize: 1,
  maximumScale: 20000,
  morning: 6.0,
  night: 19.0,
  dayLightIndesity: 1.0,
  nightLightIndesity: 0.1,
  isCreateCustomShader: true,
};
const purpleflowerConfig = {
  layerUrl: "http://172.18.80.57:80/agserver/topp/ows",
  tableName: "topp:GDSGZSTHQHCGCTREE20220524",
  gltf: "http://172.18.27.73:9405/Models/Purpleflowerpatch.glb",
  height: 9.3,
  deltaX: 0.00001,
  deltaY: 0.00001,
  modelScale: 13.0,
  visiableDistance: 2000.0,
  allowPicking: true,
  shadows: Cesium.ShadowMode.DISABLED,
  scale: 1,
  minimumPixelSize: 1,
  maximumScale: 20000,
  morning: 6.0,
  night: 19.0,
  dayLightIndesity: 1.0,
  nightLightIndesity: 0.1,
  isCreateCustomShader: true,
};
const grassConfig = {
  layerUrl: "http://172.18.80.57:80/agserver/topp/ows",
  tableName: "topp:GDSGZSTHQHCGCTREE20220524",
  gltf: "http://172.18.27.73:9405/Models/Grass.glb",
  height: 9.3,
  deltaX: 0.00004,
  deltaY: 0.00004,
  modelScale: 13.0,
  visiableDistance: 2000.0,
  allowPicking: true,
  shadows: Cesium.ShadowMode.DISABLED,
  scale: 1,
  minimumPixelSize: 1,
  maximumScale: 20000,
  morning: 6.0,
  night: 19.0,
  dayLightIndesity: 1.0,
  nightLightIndesity: 0.1,
  isCreateCustomShader: true,
};
const flowerPos = [
  { x: -2322984.31541309, y: 5389751.712154578, z: 2488640.51148755 },
  { x: -2322984.31541309, y: 5389751.712154578, z: 2488640.51148755 },
  { x: -2322987.508575723, y: 5389750.293599148, z: 2488640.5989039475 },
  { x: -2322987.508575723, y: 5389750.293599148, z: 2488640.5989039475 },
  { x: -2322990.9236617843, y: 5389748.852500117, z: 2488640.5350144985 },
  { x: -2322990.9236617843, y: 5389748.852500117, z: 2488640.5350144985 },
  { x: -2322994.9493426, y: 5389747.30868805, z: 2488640.1560817654 },
  { x: -2322994.9493426, y: 5389747.30868805, z: 2488640.1560817654 },
  { x: -2322999.9590309975, y: 5389745.443688318, z: 2488639.4924916336 },
  { x: -2322999.9590309975, y: 5389745.443688318, z: 2488639.4924916336 },
  { x: -2323005.1656457465, y: 5389743.323508693, z: 2488639.2199551645 },
  { x: -2323005.1656457465, y: 5389743.323508693, z: 2488639.2199551645 },
  { x: -2323010.554112203, y: 5389741.009988303, z: 2488639.204619343 },
  { x: -2323010.554112203, y: 5389741.009988303, z: 2488639.204619343 },
  { x: -2323019.1306964643, y: 5389737.563732491, z: 2488638.670569565 },
  { x: -2323019.1306964643, y: 5389737.563732491, z: 2488638.670569565 },
  { x: -2323015.3540365, y: 5389739.05551278, z: 2488638.9656977337 },
  { x: -2323015.3540365, y: 5389739.05551278, z: 2488638.9656977337 },
  { x: -2323022.862234139, y: 5389735.867656372, z: 2488638.8501880914 },
  { x: -2323022.862234139, y: 5389735.867656372, z: 2488638.8501880914 },
  { x: -2323027.693485452, y: 5389734.057836568, z: 2488638.271656289 },
  { x: -2323027.693485452, y: 5389734.057836568, z: 2488638.271656289 },
  { x: -2323034.4567508916, y: 5389731.197500664, z: 2488638.147511678 },
  { x: -2323034.4567508916, y: 5389731.197500664, z: 2488638.147511678 },
  { x: -2323039.779747364, y: 5389728.909871744, z: 2488638.13750399 },
  { x: -2323039.779747364, y: 5389728.909871744, z: 2488638.13750399 },
  { x: -2323044.7899499894, y: 5389726.899600299, z: 2488637.81330878 },
  { x: -2323044.7899499894, y: 5389726.899600299, z: 2488637.81330878 },
  { x: -2323050.2880717237, y: 5389724.7292985255, z: 2488637.383954438 },
  { x: -2323050.2880717237, y: 5389724.7292985255, z: 2488637.383954438 },
  { x: -2323056.3294291343, y: 5389722.311889135, z: 2488636.9791988265 },
  { x: -2323056.3294291343, y: 5389722.311889135, z: 2488636.9791988265 },
  { x: -2323063.2352619497, y: 5389719.399335386, z: 2488636.8456380735 },
  { x: -2323063.2352619497, y: 5389719.399335386, z: 2488636.8456380735 },
  { x: -2323069.4483624743, y: 5389716.7277457025, z: 2488636.833346896 },
  { x: -2323069.4483624743, y: 5389716.7277457025, z: 2488636.833346896 },
  { x: -2323074.528799785, y: 5389714.689862922, z: 2488636.503744611 },
  { x: -2323074.528799785, y: 5389714.689862922, z: 2488636.503744611 },
  { x: -2323078.973423519, y: 5389712.809609687, z: 2488636.426706016 },
  { x: -2323078.973423519, y: 5389712.809609687, z: 2488636.426706016 },
  { x: -2323086.8105722405, y: 5389710.093110932, z: 2488635.0045354473 },
  { x: -2323086.8105722405, y: 5389710.093110932, z: 2488635.0045354473 },
  { x: -2323090.641445096, y: 5389709.237544093, z: 2488633.2870033514 },
  { x: -2323090.641445096, y: 5389709.237544093, z: 2488633.2870033514 },
  { x: -2323093.9618428433, y: 5389708.4293426685, z: 2488631.9484723406 },
  { x: -2323093.9618428433, y: 5389708.4293426685, z: 2488631.9484723406 },
  { x: -2323091.425044547, y: 5389710.593119, z: 2488629.6529877167 },
  { x: -2323091.425044547, y: 5389710.593119, z: 2488629.6529877167 },
  { x: -2323087.419253817, y: 5389713.173939054, z: 2488627.8090435294 },
  { x: -2323087.419253817, y: 5389713.173939054, z: 2488627.8090435294 },
  { x: -2323081.636022136, y: 5389717.211051139, z: 2488624.4933122974 },
  { x: -2323081.636022136, y: 5389717.211051139, z: 2488624.4933122974 },
  { x: -2323084.52145467, y: 5389715.35276524, z: 2488625.815028861 },
  { x: -2323084.52145467, y: 5389715.35276524, z: 2488625.815028861 },
  { x: -2323079.4785667793, y: 5389718.9994597165, z: 2488622.644876443 },
  { x: -2323079.4785667793, y: 5389718.9994597165, z: 2488622.644876443 },
  { x: -2323076.0327661014, y: 5389721.360343636, z: 2488620.765225207 },
  { x: -2323076.0327661014, y: 5389721.360343636, z: 2488620.765225207 },
  { x: -2323073.1315573994, y: 5389723.473049654, z: 2488618.911304943 },
  { x: -2323073.1315573994, y: 5389723.473049654, z: 2488618.911304943 },
  { x: -2323066.2200157703, y: 5389726.604253587, z: 2488618.577883067 },
  { x: -2323066.2200157703, y: 5389726.604253587, z: 2488618.577883067 },
  { x: -2323058.4413396227, y: 5389729.831979327, z: 2488618.850638205 },
  { x: -2323058.4413396227, y: 5389729.831979327, z: 2488618.850638205 },
  { x: -2323052.9548368836, y: 5389731.965734323, z: 2488619.345788261 },
  { x: -2323052.9548368836, y: 5389731.965734323, z: 2488619.345788261 },
  { x: -2323045.083824471, y: 5389734.762434101, z: 2488620.6318813083 },
  { x: -2323045.083824471, y: 5389734.762434101, z: 2488620.6318813083 },
  { x: -2323037.1192637165, y: 5389738.156300894, z: 2488620.717524081 },
  { x: -2323037.1192637165, y: 5389738.156300894, z: 2488620.717524081 },
  { x: -2323030.3872216, y: 5389740.721042983, z: 2488621.4448686363 },
  { x: -2323030.3872216, y: 5389740.721042983, z: 2488621.4448686363 },
  { x: -2323024.975293411, y: 5389742.857297159, z: 2488621.8674964854 },
  { x: -2323024.975293411, y: 5389742.857297159, z: 2488621.8674964854 },
  { x: -2323017.7453899807, y: 5389745.8645539265, z: 2488622.095593173 },
  { x: -2323017.7453899807, y: 5389745.8645539265, z: 2488622.095593173 },
  { x: -2323011.668274518, y: 5389748.356005369, z: 2488622.36855985 },
  { x: -2323011.668274518, y: 5389748.356005369, z: 2488622.36855985 },
  { x: -2323005.407937658, y: 5389750.702465588, z: 2488623.125684756 },
  { x: -2323005.407937658, y: 5389750.702465588, z: 2488623.125684756 },
  { x: -2323000.766093341, y: 5389752.288861978, z: 2488624.026387751 },
  { x: -2323000.766093341, y: 5389752.288861978, z: 2488624.026387751 },
  { x: -2322993.776510132, y: 5389754.733720656, z: 2488625.2420059647 },
  { x: -2322993.776510132, y: 5389754.733720656, z: 2488625.2420059647 },
  { x: -2322987.9577452596, y: 5389756.438302236, z: 2488626.971704696 },
  { x: -2322987.9577452596, y: 5389756.438302236, z: 2488626.971704696 },
  { x: -2322983.5114380484, y: 5389757.3180389935, z: 2488629.198485085 },
  { x: -2322983.5114380484, y: 5389757.3180389935, z: 2488629.198485085 },
  { x: -2322979.5852114796, y: 5389757.870958064, z: 2488631.656646154 },
  { x: -2322979.5852114796, y: 5389757.870958064, z: 2488631.656646154 },
  { x: -2322978.8158954754, y: 5389756.295592287, z: 2488635.7521128994 },
  { x: -2322978.8158954754, y: 5389756.295592287, z: 2488635.7521128994 },
  { x: -2322981.228337495, y: 5389753.558696247, z: 2488639.4042037544 },
  { x: -2322981.228337495, y: 5389753.558696247, z: 2488639.4042037544 },
  { x: -2322985.56326705, y: 5389752.191573428, z: 2488638.323883448 },
  { x: -2322985.56326705, y: 5389752.191573428, z: 2488638.323883448 },
  { x: -2322993.06387623, y: 5389749.295621, z: 2488637.604206459 },
  { x: -2322993.06387623, y: 5389749.295621, z: 2488637.604206459 },
  { x: -2323008.3033843, y: 5389743.2482222365, z: 2488636.481188574 },
  { x: -2323008.3033843, y: 5389743.2482222365, z: 2488636.481188574 },
  { x: -2323000.4042559057, y: 5389746.365652576, z: 2488637.097932807 },
  { x: -2323000.4042559057, y: 5389746.365652576, z: 2488637.097932807 },
  { x: -2322984.019412881, y: 5389754.180965801, z: 2488635.481230687 },
  { x: -2322984.019412881, y: 5389754.180965801, z: 2488635.481230687 },
  { x: -2322984.346535352, y: 5389755.207840897, z: 2488632.96504096 },
  { x: -2322984.346535352, y: 5389755.207840897, z: 2488632.96504096 },
  { x: -2322987.327444213, y: 5389755.0933149215, z: 2488630.445883397 },
  { x: -2322987.327444213, y: 5389755.0933149215, z: 2488630.445883397 },
  { x: -2322990.888102187, y: 5389753.970404255, z: 2488629.563636211 },
  { x: -2322990.888102187, y: 5389753.970404255, z: 2488629.563636211 },
  { x: -2322993.9547485257, y: 5389753.292574304, z: 2488628.182867027 },
  { x: -2322993.9547485257, y: 5389753.292574304, z: 2488628.182867027 },
  { x: -2323000.178088766, y: 5389750.771269447, z: 2488627.8301848043 },
  { x: -2323000.178088766, y: 5389750.771269447, z: 2488627.8301848043 },
  { x: -2323013.0665374924, y: 5389745.683671802, z: 2488626.823659338 },
  { x: -2323013.0665374924, y: 5389745.683671802, z: 2488626.823659338 },
  { x: -2323006.9213074916, y: 5389748.545089041, z: 2488626.362703033 },
  { x: -2323006.9213074916, y: 5389748.545089041, z: 2488626.362703033 },
  { x: -2323020.957528969, y: 5389742.601009145, z: 2488626.140695322 },
  { x: -2323020.957528969, y: 5389742.601009145, z: 2488626.140695322 },
  { x: -2323026.709483114, y: 5389740.120022254, z: 2488626.1408300423 },
  { x: -2323026.709483114, y: 5389740.120022254, z: 2488626.1408300423 },
  { x: -2323033.9514620965, y: 5389737.136116659, z: 2488625.843903392 },
  { x: -2323033.9514620965, y: 5389737.136116659, z: 2488625.843903392 },
  { x: -2323042.9288447937, y: 5389733.906970755, z: 2488624.472007349 },
  { x: -2323042.9288447937, y: 5389733.906970755, z: 2488624.472007349 },
  { x: -2323053.728501886, y: 5389729.829468246, z: 2488623.224797278 },
  { x: -2323053.728501886, y: 5389729.829468246, z: 2488623.224797278 },
  { x: -2323062.525237173, y: 5389726.259841665, z: 2488622.745121699 },
  { x: -2323062.525237173, y: 5389726.259841665, z: 2488622.745121699 },
  { x: -2323068.9619302303, y: 5389723.686718443, z: 2488622.3090997767 },
  { x: -2323068.9619302303, y: 5389723.686718443, z: 2488622.3090997767 },
  { x: -2323073.104895967, y: 5389721.111948, z: 2488624.000893315 },
  { x: -2323073.104895967, y: 5389721.111948, z: 2488624.000893315 },
  { x: -2323078.702572749, y: 5389717.657956848, z: 2488626.2537563043 },
  { x: -2323078.702572749, y: 5389717.657956848, z: 2488626.2537563043 },
  { x: -2323082.931351926, y: 5389713.98316428, z: 2488630.2302679094 },
  { x: -2323082.931351926, y: 5389713.98316428, z: 2488630.2302679094 },
  { x: -2323086.497226548, y: 5389711.417821164, z: 2488632.446053104 },
  { x: -2323086.497226548, y: 5389711.417821164, z: 2488632.446053104 },
  { x: -2323081.419799401, y: 5389713.077768134, z: 2488633.584568786 },
  { x: -2323081.419799401, y: 5389713.077768134, z: 2488633.584568786 },
  { x: -2323076.55826703, y: 5389714.71324775, z: 2488634.5707684956 },
  { x: -2323076.55826703, y: 5389714.71324775, z: 2488634.5707684956 },
  { x: -2323067.9014773346, y: 5389718.130557565, z: 2488635.2468571626 },
  { x: -2323067.9014773346, y: 5389718.130557565, z: 2488635.2468571626 },
  { x: -2323061.3858864815, y: 5389720.763292041, z: 2488635.6200097683 },
  { x: -2323061.3858864815, y: 5389720.763292041, z: 2488635.6200097683 },
  { x: -2323053.116735337, y: 5389724.250313051, z: 2488635.7949313745 },
  { x: -2323053.116735337, y: 5389724.250313051, z: 2488635.7949313745 },
  { x: -2323049.113062951, y: 5389726.081951794, z: 2488635.5682514496 },
  { x: -2323049.113062951, y: 5389726.081951794, z: 2488635.5682514496 },
  { x: -2323043.448509043, y: 5389728.5043362295, z: 2488635.605387063 },
  { x: -2323043.448509043, y: 5389728.5043362295, z: 2488635.605387063 },
  { x: -2323030.1424422376, y: 5389733.849957645, z: 2488636.4419148774 },
  { x: -2323030.1424422376, y: 5389733.849957645, z: 2488636.4419148774 },
  { x: -2323018.6047744, y: 5389739.06445334, z: 2488635.9284162256 },
  { x: -2323018.6047744, y: 5389739.06445334, z: 2488635.9284162256 },
  { x: -2323013.9391993065, y: 5389741.250122948, z: 2488635.5514562475 },
  { x: -2323013.9391993065, y: 5389741.250122948, z: 2488635.5514562475 },
  { x: -2322988.2502320125, y: 5389752.579728015, z: 2488634.998919549 },
  { x: -2322988.2502320125, y: 5389752.579728015, z: 2488634.998919549 },
  { x: -2322991.990874181, y: 5389751.260805162, z: 2488634.3708393127 },
  { x: -2322991.990874181, y: 5389751.260805162, z: 2488634.3708393127 },
  { x: -2322995.0372138764, y: 5389750.809994435, z: 2488632.5189387873 },
  { x: -2322995.0372138764, y: 5389750.809994435, z: 2488632.5189387873 },
  { x: -2322999.4880307172, y: 5389748.705466272, z: 2488632.9096510466 },
  { x: -2322999.4880307172, y: 5389748.705466272, z: 2488632.9096510466 },
  { x: -2323004.238913289, y: 5389747.54909642, z: 2488630.9918394582 },
  { x: -2323004.238913289, y: 5389747.54909642, z: 2488630.9918394582 },
  { x: -2323008.944767479, y: 5389745.566272632, z: 2488630.893184779 },
  { x: -2323008.944767479, y: 5389745.566272632, z: 2488630.893184779 },
  { x: -2323016.1347367857, y: 5389742.667513607, z: 2488630.4670003736 },
  { x: -2323016.1347367857, y: 5389742.667513607, z: 2488630.4670003736 },
  { x: -2323026.473271883, y: 5389738.49344263, z: 2488629.8616602602 },
  { x: -2323026.473271883, y: 5389738.49344263, z: 2488629.8616602602 },
  { x: -2323039.0011983165, y: 5389733.766253363, z: 2488628.4123013443 },
  { x: -2323039.0011983165, y: 5389733.766253363, z: 2488628.4123013443 },
  { x: -2323054.156589818, y: 5389727.06449371, z: 2488628.775489368 },
  { x: -2323054.156589818, y: 5389727.06449371, z: 2488628.775489368 },
  { x: -2323048.304653114, y: 5389729.968573469, z: 2488627.9546198077 },
  { x: -2323048.304653114, y: 5389729.968573469, z: 2488627.9546198077 },
  { x: -2323058.192434838, y: 5389726.473142945, z: 2488626.3090340337 },
  { x: -2323058.192434838, y: 5389726.473142945, z: 2488626.3090340337 },
  { x: -2323064.0810239664, y: 5389723.740843913, z: 2488626.7224986437 },
  { x: -2323064.0810239664, y: 5389723.740843913, z: 2488626.7224986437 },
  { x: -2323068.978634477, y: 5389721.589458594, z: 2488626.8110662056 },
  { x: -2323068.978634477, y: 5389721.589458594, z: 2488626.8110662056 },
  { x: -2323072.1904228404, y: 5389720.256884566, z: 2488626.6937960535 },
  { x: -2323072.1904228404, y: 5389720.256884566, z: 2488626.6937960535 },
  { x: -2323075.2009066716, y: 5389718.288409659, z: 2488628.1413947316 },
  { x: -2323075.2009066716, y: 5389718.288409659, z: 2488628.1413947316 },
  { x: -2323076.7913807454, y: 5389715.876751328, z: 2488631.8561753756 },
  { x: -2323076.7913807454, y: 5389715.876751328, z: 2488631.8561753756 },
  { x: -2323070.5473864446, y: 5389718.369864995, z: 2488632.275202499 },
  { x: -2323070.5473864446, y: 5389718.369864995, z: 2488632.275202499 },
  { x: -2323062.1696013035, y: 5389721.676922442, z: 2488632.929460478 },
  { x: -2323062.1696013035, y: 5389721.676922442, z: 2488632.929460478 },
  { x: -2323053.929215731, y: 5389724.92986876, z: 2488633.573038443 },
  { x: -2323053.929215731, y: 5389724.92986876, z: 2488633.573038443 },
  { x: -2323034.6906288173, y: 5389732.807574908, z: 2488634.46962083 },
  { x: -2323034.6906288173, y: 5389732.807574908, z: 2488634.46962083 },
  { x: -2323029.1957778344, y: 5389735.636272821, z: 2488633.4850472766 },
  { x: -2323029.1957778344, y: 5389735.636272821, z: 2488633.4850472766 },
  { x: -2323023.292438809, y: 5389737.966514685, z: 2488633.94604551 },
  { x: -2323023.292438809, y: 5389737.966514685, z: 2488633.94604551 },
  { x: -2323009.0578945824, y: 5389744.139541, z: 2488633.912213802 },
  { x: -2323009.0578945824, y: 5389744.139541, z: 2488633.912213802 },
  { x: -2322998.125427617, y: 5389748.022451371, z: 2488635.6405634005 },
  { x: -2322998.125427617, y: 5389748.022451371, z: 2488635.6405634005 },
  { x: -2323015.577631466, y: 5389741.541677481, z: 2488633.4030339154 },
  { x: -2323015.577631466, y: 5389741.541677481, z: 2488633.4030339154 },
  { x: -2323039.1240091305, y: 5389731.935499836, z: 2488632.238026601 },
  { x: -2323039.1240091305, y: 5389731.935499836, z: 2488632.238026601 },
  { x: -2323046.4492379357, y: 5389728.603022256, z: 2488632.607661641 },
  { x: -2323046.4492379357, y: 5389728.603022256, z: 2488632.607661641 },
  { x: -2323058.123786502, y: 5389724.370523427, z: 2488630.8879253245 },
  { x: -2323058.123786502, y: 5389724.370523427, z: 2488630.8879253245 },
  { x: -2323067.0631006206, y: 5389720.562676543, z: 2488630.7969601965 },
  { x: -2323067.0631006206, y: 5389720.562676543, z: 2488630.7969601965 },
  { x: -2323091.485672943, y: 5389715.06614277, z: 2488619.9711079155 },
  { x: -2323092.4313360867, y: 5389716.268399811, z: 2488616.5104987035 },
  { x: -2323095.4592290763, y: 5389714.971118864, z: 2488616.4934214223 },
  { x: -2323098.487189857, y: 5389713.673717581, z: 2488616.476306093 },
  { x: -2323100.8549742186, y: 5389712.639093622, z: 2488616.506505851 },
  { x: -2323106.3326718835, y: 5389717.721550287, z: 2488618.447872563 },
  { x: -2323110.623329035, y: 5389716.209477143, z: 2488618.5166772716 },
  { x: -2323111.5490131397, y: 5389708.756354258, z: 2488614.9433110617 },
  { x: -2323115.2593887663, y: 5389707.303764458, z: 2488614.6280698604 },
  { x: -2323119.5181655264, y: 5389705.565152994, z: 2488614.417689188 },
  { x: -2323123.8768979446, y: 5389703.785422306, z: 2488614.205877388 },
  { x: -2323127.2337978017, y: 5389702.4723780425, z: 2488613.9154416076 },
  { x: -2323129.783148378, y: 5389701.5051846625, z: 2488613.633530732 },
  { x: -2323135.673153051, y: 5389699.296941096, z: 2488612.9234821335 },
  { x: -2323131.79846146, y: 5389700.767659653, z: 2488613.3498686007 },
  { x: -2323137.516594326, y: 5389698.354373327, z: 2488613.240337322 },
  { x: -2323141.8942066114, y: 5389696.658911756, z: 2488612.8271823977 },
  { x: -2323145.7771382593, y: 5389694.975581849, z: 2488612.8489204487 },
  { x: -2323148.6939963517, y: 5389700.305421931, z: 2488615.2857406493 },
  { x: -2323152.0993450508, y: 5389700.6788034635, z: 2488616.097757028 },
  { x: -2323153.5713514346, y: 5389699.850538987, z: 2488615.8849205268 },
  { x: -2323155.5250140605, y: 5389691.0744265355, z: 2488612.201311412 },
  { x: -2323162.3120175744, y: 5389687.957290266, z: 2488612.6139542647 },
  { x: -2323160.280061197, y: 5389688.765642138, z: 2488612.759343175 },
  { x: -2323171.3707077713, y: 5389688.457699326, z: 2488613.4658040656 },
  { x: -2323168.4310748614, y: 5389685.383374041, z: 2488612.475329613 },
  { x: -2323175.4415515736, y: 5389682.5946015995, z: 2488611.973779795 },
  { x: -2323179.107619899, y: 5389681.438384252, z: 2488611.0630822415 },
  { x: -2323183.814587056, y: 5389680.516517668, z: 2488608.68086385 },
  { x: -2323186.9186055814, y: 5389680.09330672, z: 2488606.713390551 },
  { x: -2323186.3796828347, y: 5389678.847489489, z: 2488609.894398316 },
  { x: -2323188.4340442265, y: 5389676.057788948, z: 2488613.9894145103 },
  { x: -2323187.0712533207, y: 5389675.996288003, z: 2488615.3851200882 },
  { x: -2323189.327474827, y: 5389673.890551783, z: 2488617.8207516894 },
  { x: -2323190.739639821, y: 5389671.958227919, z: 2488620.6681331135 },
  { x: -2323189.2645824067, y: 5389671.754797394, z: 2488622.47342267 },
  { x: -2323188.481831062, y: 5389671.438367719, z: 2488623.8795436923 },
  { x: -2323186.447526726, y: 5389672.247655158, z: 2488624.0250937226 },
  { x: -2323181.963989314, y: 5389673.728415044, z: 2488624.9958661413 },
  { x: -2323177.6218931535, y: 5389675.618302268, z: 2488624.9563266374 },
  { x: -2323174.7738004006, y: 5389676.751293047, z: 2488625.1600880194 },
  { x: -2323166.340683948, y: 5389679.897305832, z: 2488626.213753452 },
  { x: -2323170.201502382, y: 5389678.337991063, z: 2488625.9874910116 },
  { x: -2323163.4185537845, y: 5389680.943168107, z: 2488626.672802683 },
  { x: -2323149.9000258604, y: 5389685.840995725, z: 2488628.6707644816 },
  { x: -2323125.112325522, y: 5389695.376232978, z: 2488631.144646642 },
  { x: -2323113.3467440894, y: 5389700.474826512, z: 2488631.085654607 },
  { x: -2323107.6189206154, y: 5389703.823061976, z: 2488629.1946323514 },
  { x: -2323096.2595835417, y: 5389711.385978854, z: 2488623.460093986 },
  { x: -2323101.6292477017, y: 5389708.437888051, z: 2488624.824835298 },
  { x: -2323094.874254847, y: 5389712.355801942, z: 2488622.660456281 },
  { x: -2323111.406739331, y: 5389701.94513214, z: 2488629.724135722 },
  { x: -2323119.3096569087, y: 5389698.405581253, z: 2488630.008898586 },
  { x: -2323135.871604446, y: 5389698.4181010155, z: 2488631.983670974 },
  { x: -2323130.43112956, y: 5389693.399470062, z: 2488630.4637631048 },
  { x: -2323141.55797708, y: 5389689.159368533, z: 2488629.267525552 },
  { x: -2323146.8949900595, y: 5389687.269562139, z: 2488628.385672837 },
  { x: -2323158.9082118277, y: 5389682.792422715, z: 2488626.8757393896 },
  { x: -2323153.3729712064, y: 5389684.5299525745, z: 2488628.272464982 },
  { x: -2323095.0157723096, y: 5389713.691973915, z: 2488619.6543593626 },
  { x: -2323099.017232985, y: 5389711.799191223, z: 2488620.017349024 },
  { x: -2323101.2336560716, y: 5389709.61674752, z: 2488622.654878539 },
  { x: -2323104.6398187364, y: 5389709.236913029, z: 2488620.3137917644 },
  { x: -2323103.2273424556, y: 5389710.332613956, z: 2488619.266570747 },
  { x: -2323109.6973631503, y: 5389708.084428632, z: 2488618.1051472942 },
  { x: -2323113.696297347, y: 5389706.42300112, z: 2488617.9683582042 },
  { x: -2323119.8993574036, y: 5389704.629220888, z: 2488616.0776120136 },
  { x: -2323127.844514869, y: 5389701.190188178, z: 2488616.1080428027 },
  { x: -2323134.9558234834, y: 5389698.106038169, z: 2488616.1482762904 },
  { x: -2323137.4181769444, y: 5389697.242790729, z: 2488615.722667143 },
  { x: -2323142.1385306953, y: 5389695.155927932, z: 2488615.834054157 },
  { x: -2323145.215898805, y: 5389693.838863243, z: 2488615.8135301126 },
  { x: -2323151.7250685357, y: 5389698.789493574, z: 2488619.049323034 },
  { x: -2323155.1607418656, y: 5389695.7819337575, z: 2488617.5955003197 },
  { x: -2323157.9550641906, y: 5389688.957096868, z: 2488614.5029166644 },
  { x: -2323161.105084537, y: 5389687.704008244, z: 2488614.2775514657 },
  { x: -2323162.93878721, y: 5389686.741787232, z: 2488614.6452080915 },
  { x: -2323165.2952804007, y: 5389685.689168307, z: 2488614.7265529484 },
  { x: -2323170.4413306783, y: 5389683.456268976, z: 2488614.7577057597 },
  { x: -2323175.988199035, y: 5389681.55087947, z: 2488613.7116780626 },
  { x: -2323181.3467873395, y: 5389679.280405342, z: 2488613.627997727 },
  { x: -2323182.71997532, y: 5389679.52301727, z: 2488611.8326945603 },
  { x: -2323184.773634361, y: 5389678.033552747, z: 2488613.13337195 },
  { x: -2323184.6270677024, y: 5389676.81482538, z: 2488615.8898198893 },
  { x: -2323185.7963285083, y: 5389675.304821587, z: 2488618.054003844 },
  { x: -2323187.2337821606, y: 5389673.757304571, z: 2488620.049883399 },
  { x: -2323187.195822557, y: 5389673.051926276, z: 2488621.6021039286 },
  { x: -2323184.4026670004, y: 5389674.44100093, z: 2488621.201717087 },
  { x: -2323182.4828153835, y: 5389674.484070926, z: 2488622.8888137564 },
  { x: -2323180.7573947604, y: 5389675.449494318, z: 2488622.41232473 },
  { x: -2323180.851565355, y: 5389676.156116949, z: 2488620.806124017 },
  { x: -2323181.5648406288, y: 5389676.6621766435, z: 2488619.0559401023 },
  { x: -2323180.8602060834, y: 5389677.500250696, z: 2488617.9074020586 },
  { x: -2323179.541326103, y: 5389678.5590943415, z: 2488616.852907209 },
  { x: -2323177.9087014436, y: 5389679.696492225, z: 2488615.9210731345 },
  { x: -2323174.8223638246, y: 5389680.993813838, z: 2488615.9920429913 },
  { x: -2323175.254560188, y: 5389679.916593547, z: 2488617.909047826 },
  { x: -2323176.1099816114, y: 5389677.670723588, z: 2488621.9452392072 },
  { x: -2323172.8336095912, y: 5389678.601955014, z: 2488622.97942291 },
  { x: -2323169.48215577, y: 5389679.958737452, z: 2488623.169311144 },
  { x: -2323167.2773092403, y: 5389680.742801394, z: 2488623.5270120488 },
  { x: -2323163.324991538, y: 5389682.128989937, z: 2488624.209718095 },
  { x: -2323158.5449738423, y: 5389684.030449541, z: 2488624.551674433 },
  { x: -2323153.2840101565, y: 5389686.006579426, z: 2488625.1778944 },
  { x: -2323143.8700867617, y: 5389689.216750742, z: 2488627.0015504765 },
  { x: -2323146.191422733, y: 5389688.455890107, z: 2488626.4853366036 },
  { x: -2323138.8777389354, y: 5389691.412416904, z: 2488626.9087773464 },
  { x: -2323149.9552366678, y: 5389687.214221444, z: 2488625.6659463705 },
  { x: -2323133.6188134532, y: 5389698.578252859, z: 2488630.2639233386 },
  { x: -2323128.96558887, y: 5389695.377858944, z: 2488627.567585505 },
  { x: -2323123.4649690697, y: 5389697.031080631, z: 2488629.1113490206 },
  { x: -2323118.2257133783, y: 5389699.604060037, z: 2488628.4360807207 },
  { x: -2323114.43088697, y: 5389701.206715849, z: 2488628.5075651505 },
  { x: -2323110.776613756, y: 5389702.939517495, z: 2488628.169003336 },
  { x: -2323107.2702873233, y: 5389705.077402234, z: 2488626.81976772 },
  { x: -2323105.087602731, y: 5389707.178017855, z: 2488624.32751291 },
  { x: -2323105.5939999814, y: 5389707.6966814725, z: 2488622.742623924 },
  { x: -2323109.173609645, y: 5389706.621061339, z: 2488621.737313622 },
  { x: -2323113.5930440356, y: 5389704.607753996, z: 2488621.9706304567 },
  { x: -2323109.4905760386, y: 5389704.845186299, z: 2488625.261572793 },
  { x: -2323114.2262307317, y: 5389702.75296509, z: 2488625.3728545317 },
  { x: -2323118.6712136352, y: 5389700.844717264, z: 2488625.354511237 },
  { x: -2323115.5104394453, y: 5389703.287250535, z: 2488623.03223487 },
  { x: -2323116.755133669, y: 5389704.139166133, z: 2488620.0462987106 },
  { x: -2323116.873776347, y: 5389704.678454145, z: 2488618.775071114 },
  { x: -2323120.9448571135, y: 5389702.595497416, z: 2488619.4827134763 },
  { x: -2323124.015421167, y: 5389700.490771197, z: 2488621.160420588 },
  { x: -2323125.8037945405, y: 5389698.339993353, z: 2488624.1304849805 },
  { x: -2323123.21529385, y: 5389698.64918797, z: 2488625.8650773386 },
  { x: -2323127.0586988875, y: 5389696.770710003, z: 2488626.3396612993 },
  { x: -2323118.5712960055, y: 5389701.890330396, z: 2488623.1986033823 },
  { x: -2323129.446879791, y: 5389696.309286087, z: 2488625.1191781918 },
  { x: -2323128.0957022407, y: 5389698.116717078, z: 2488622.485815042 },
  { x: -2323125.4177867468, y: 5389700.250353368, z: 2488620.379747819 },
  { x: -2323129.8367507127, y: 5389699.722566312, z: 2488617.4172779326 },
  { x: -2323133.480437664, y: 5389697.019457436, z: 2488619.8527260483 },
  { x: -2323130.98540962, y: 5389697.98846692, z: 2488620.0810522083 },
  { x: -2323136.8911524876, y: 5389695.941379622, z: 2488619.0094970665 },
  { x: -2323134.003999851, y: 5389699.6828854075, z: 2488624.220867646 },
  { x: -2323140.3578776056, y: 5389692.146611248, z: 2488623.9570987425 },
  { x: -2323137.8881443627, y: 5389694.243682406, z: 2488621.735004435 },
  { x: -2323137.051285549, y: 5389701.242067231, z: 2488625.976253586 },
  { x: -2323142.802408559, y: 5389690.941148484, z: 2488624.2817949187 },
  { x: -2323147.2258419585, y: 5389689.18153473, z: 2488623.965344722 },
  { x: -2323151.395064837, y: 5389687.523039134, z: 2488623.6670787125 },
  { x: -2323156.969524618, y: 5389685.212443676, z: 2488623.4681766424 },
  { x: -2323161.59143524, y: 5389683.606988833, z: 2488622.6379485847 },
  { x: -2323168.940162056, y: 5389680.822630119, z: 2488621.8121461645 },
  { x: -2323172.0859691836, y: 5389680.059704481, z: 2488620.5378107554 },
  { x: -2323170.5257369443, y: 5389681.539485579, z: 2488618.8006638 },
  { x: -2323167.3873010315, y: 5389683.113708753, z: 2488618.3261070237 },
  { x: -2323158.843412166, y: 5389686.999499318, z: 2488617.8882863675 },
  { x: -2323145.278821382, y: 5389692.419021262, z: 2488618.8089266066 },
  { x: -2323141.6192025314, y: 5389693.6194654405, z: 2488619.620127963 },
  { x: -2323143.742716471, y: 5389691.706362071, z: 2488621.766080555 },
  { x: -2323152.5507260626, y: 5389688.016697726, z: 2488621.5356608406 },
  { x: -2323158.2350591407, y: 5389685.708432742, z: 2488621.2287036176 },
  { x: -2323162.0614882293, y: 5389684.256853969, z: 2488620.805386691 },
  { x: -2323164.8568242355, y: 5389683.4002183415, z: 2488620.0557240034 },
  { x: -2323162.9333396046, y: 5389684.722066047, z: 2488618.9940689104 },
  { x: -2323154.9809517213, y: 5389688.280705346, z: 2488618.7140394514 },
  { x: -2323147.6273277435, y: 5389690.532690737, z: 2488620.688806383 },
];
let degressArray = flowerPos.map((pos) => {
  let cartesian = new Cesium.Cartesian3(pos.x, pos.y, pos.z);
  let cartographic = Cesium.Cartographic.fromCartesian(cartesian);
  cartographic.longitude *= 180 / Math.PI;
  cartographic.latitude *= 180 / Math.PI;
  let degress = [cartographic.longitude, cartographic.latitude];
  return degress;
});
export default {
  bulidingEffectCode,
  bulidingAssociatedCode,
  bulidingEffectList,
  bulidingAssociatedList,
  buildingTextureCode,
  buildingTextureList,
  waterConfig,
  lightConfig,
  treeConfig,
  yellowFloweConfig,
  purpleflowerConfig,
  grassConfig,
  degressArray,
  flattenRectangle,
  flattenHeight,
};
